package com.lowca.news.web.controller.common;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 错误控制器
 * 
 * @author konglz
 * 
 */
@Controller
public class ErrorController {

	@RequestMapping(value = "/error/404.do")
	public String error404(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		return "/error/404";
	}

	@RequestMapping(value = "/error/403.do")
	public String error403(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		return "/error/403";
	}

}
